home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Compression / Opener / Opener.app / Opener.table < prev    next >
Text File  |  1994-03-08  |  4KB  |  74 lines

  1. #
  2. # These suffix/command pairs tell Opener how to unpack archive files.
  3. # Some abbreviations in the command are expanded before execution:
  4. #    unpack: ... => mkdir $t; cd $t; ...
  5. #    $f          => the current filename
  6. #    $t          => the temporary filename; if $f = /a/b/c.suff, $t is /tmp/O_c
  7. #    $p/...      => look for ... in the internal directory;
  8. #                   e.g., $p/unsit => /LocalApps/Opener.app/unsit
  9. # You can edit the following commands (for example, to use new
  10. # or different archivers).  To add new filetypes, look at
  11. # Opener.app/README.rtfd, or in Controller.m
  12. #
  13. Unpack:
  14. .tar    unpack: tar xf $f
  15. .tar.gz $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
  16. .tar.z  $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
  17. .tar.Z  $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
  18. .tar-gz $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
  19. .tar-z  $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
  20. .tar-Z  $p/gunzip < $f | (mkdir $t; cd $t; tar xf -)
  21. .shar    unpack: sed '1,/[^:\#]/d' $f | /bin/sh
  22. .shar.gz $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  23. .shar.z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  24. .shar.Z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  25. .shar-gz $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  26. .shar-z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  27. .shar-Z $p/gunzip < $f | (mkdir $t; cd $t; sed '1,/[^:\#]/d' | /bin/sh)
  28. .uu        unpack: uudecode $f; open *
  29. .lzh    unpack: $p/xlharc xf $f >> /tmp/console.log
  30. .arc    unpack: $p/arc ox $f >> /tmp/console.log
  31. .sit    unpack: $p/unsit -u $f >> /tmp/console.log
  32. .bin    unpack: $p/unsit -u $f >> /tmp/console.log
  33. .hqx    unpack: $p/mcvert -ux $f >> /tmp/console.log
  34. .zip    unpack: $p/unzip -o $f >> /tmp/console.log
  35. .zoo    unpack: $p/booz x $f >> /tmp/console.log
  36. .gz $p/gunzip < $f > $t
  37. .z $p/gunzip < $f > $t
  38. .Z    $p/gunzip < $f > $t
  39. .arj     unpack: $p/unarj e $f >> /tmp/console.log
  40. -gz $p/gunzip < $f > $t
  41. -z $p/gunzip < $f > $t
  42. -Z    $p/gunzip < $f > $t
  43. -arj     unpack: $p/unarj e $f >> /tmp/console.log
  44. .compressed /usr/ucb/zcat < $f | (mkdir $t; cd $t; tar xf -)
  45.  
  46. # These commands create archive files.  The semantics are as above, but:
  47. #    $d          => the deepest directory path (e.g., /a/b/{c,d,e} => /a/b)
  48. #    $f          => the filenames, less the $d prefix portion.
  49. #    $F          => the filenames
  50. #    $t          => the tmp file, /tmp/O_..., where ... => first file in $f.
  51. #    $p/...      => look for ... in the internal directory;
  52. #                   e.g., $p/unsit => /LocalApps/Opener.app/unsit
  53. # In general, the archiving command will look like:  
  54. #    (cd $d; ... $f > $t; echo $t done)
  55. #
  56. Pack:
  57. .tar    (cd $d; tar cf - $f  > $t; echo $t done)
  58. .tar.gz (cd $d; tar cf - $f | $p/gzip > $t; echo $t done)
  59. .tar.z  (cd $d; tar cf - $f | $p/gzip > $t; echo $t done)
  60. .tar.Z  (cd $d; tar cf - $f | compress > $t; echo $t done)
  61. .shar   (cd $d; shar $f > $t; echo $t done)
  62. .shar.gz (cd $d; shar $f | $p/gzip > $t; echo $t done)
  63. .shar.z (cd $d; shar $f | $p/gzip > $t; echo $t done)
  64. .shar.Z (cd $d; shar $f | compress > $t; echo $t done)
  65. .uu     (cd $d; uuencode $f $f > $t; echo $t done)
  66. .lzh    (cd $d; $p/xlharc c $t $f >> /tmp/console.log; echo $t done)
  67. .arc    (cd $d; $p/arc a $t $f >> /tmp/console.log; echo $t done)
  68. .zip    (cd $d; $p/zip $t $f >> /tmp/console.log; echo $t done)
  69. .compressed (cd $d; tar cf - $f | compress > $t; echo $t done)
  70. # drop a directory on Opener and pick "submit" to automatically
  71. # ftp the .tar.Z and README files to NeXT archive sites and
  72. # alert the archivists.  NB, directory must include a README file.
  73. remote    (cd $d; $p/Submit $f)
  74.